﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;
using System.Xml;

namespace Site_Extractor
{
    public class SiteDataExtractor
    {
        //XML site data filename
        string fileName;
        //XML Node names
        const string xSite = "Site", xName = "Name", xDomainList = "DomainList",
            xDomain = "Domain", xRuleList = "RuleList", xRule = "Rule", xTitle = "Title",
            xSummary = "Summary", xText = "Text";
        public SiteDataExtractor(string FileName)
        {
            fileName = FileName;
        }
        public Site GetSiteDataByName(string name)
        {
            Site site = new Site("");

            XmlTextReader xmlReader = new XmlTextReader(fileName);
         
            return site;
        }
    }
}
